﻿namespace MultiDAQ_Analysis.Calculation.Parameters
{
    public class BioSampleParameters : MeasurementParameters
    {
        public override string MeasurementType => "BioSample";

        public double FreshSampleWeight { get; set; } = 20.0; // kg (1-49kg)
        public double TestedSampleMass { get; set; } = 10.0; // mg (1-1000000mg)
        public double TotalAshWeight { get; set; } = 50.0; // mg (1-5000mg)
        public double RecoveryRate { get; set; } = 0.6; // ≤1
        public bool UseStandardEfficiency { get; set; } = true;

        public override bool Validate()
        {
            return FreshSampleWeight >= 1 && FreshSampleWeight <= 49 &&
                   TestedSampleMass >= 1 && TestedSampleMass <= 1000000 &&
                   TotalAshWeight >= 1 && TotalAshWeight <= 5000 &&
                   RecoveryRate > 0 && RecoveryRate <= 1.0;
        }
    }
}